home *** CD-ROM | disk | FTP | other *** search
/ BUG 1 / BUGCD1996_0708.ISO / mac / Alati / Kalkulatori / CalConvert 2.2 FAT / CalConvert FAT / CalConvert FAT.rsrc / TEXT_5000.txt < prev    next >
Text File  |  1995-12-14  |  7KB  |  119 lines

  1. Alessandro Levi Montalcini
  2. C.so Re Umberto 10
  3. 10121 Torino
  4. Italy
  5. e-mail: alm@torino.alpcom.it
  6. ftp://ftp.alpcom.it/software/mac/LMontalcini
  7. ftp://ftp.alpcom.it/software/mac/LMontalcini/html/alm_home.html
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14. CalConvert 2.2 documentation - December 1995
  15.  
  16. ΓÇó Shareware: $5
  17. Γùè  This utility is distributed as shareware: if you like it please honor the shareware system by sending $5 to the author at the address above. Since cashing international cheques is very expensive, please send cash only (U.S. dollars are best, but any other currency is fine).
  18. Γùè  If you work on the Macintosh, there are many things you can send me instead of the money. Here are some suggestions: original software (but donΓÇÖt send any shareware/freeware unless youΓÇÖre the author), books or computer-related magazines (any free issue or subscription is welcome), CD-ROMs, any piece of new or used hardware, or anything else youΓÇÖve created.
  19. Γùè  ThereΓÇÖs still another thing you could do: IΓÇÖll finish my physics studies sometime in 1996 and IΓÇÖm looking for a one-year job as a programmer (or maybe a scientist?) outside of Italy. Let me know if you have anything to offer.
  20. Γùè  If you canΓÇÖt afford any of the above an e-mail, a postcard or a letter is welcome. I speak English, French and Italian. Please forgive me if I donΓÇÖt answer to all of your letters - I am often overloaded with my school work.
  21.  
  22. ΓÇó Introduction
  23. Γùè  CalConvert is a small shareware utility that does integer arithmetic calculations and converts integer values to different bases (decimal, hexadecimal, binary, octal or any custom base between 2 and 32) or to an OSType (a sequence of four ASCII characters). The conversion may be signed or unsigned (you can always enter a signed value, it gets converted to unsigned if needed); the result may be interpreted either as a word (2 bytes) or as a long word (4 bytes). Version 2.0 sports a new clickable bit field display for easy bit-by-bit manipulations. The Return and Enter keys start the conversion; Tab, shift-Tab and the four arrow keys have their usual meanings.
  24.  
  25. ΓÇó Configuration
  26. Γùè  Choosing the ΓÇ£FieldsΓÇ¥ item from the ΓÇ£OptionsΓÇ¥ menu brings up a configuration dialog that can be used to fully customize CalConvert. CalConvert can show up to 8 fields; each field contains either a mathematical expression, a sequence of 1 to 4 characters (OSType) or an integer number in any base from 2 to 32.
  27. Γùè  Version 2.0 comes with Font and Size menus that can be used to change the windowΓÇÖs look and size.
  28.  
  29. ΓÇó The calculator
  30. Γùè  You may enter mathematical or logical expressions in fields labeled ΓÇ£MathΓÇ¥, i.e. things like ΓÇ£(12*(128-$20))<<2+2^8ΓÇ¥; the result is shown in all the other fields of the window when you press Return or Enter or click the ΓÇ£=ΓÇ¥ button. If the expression canΓÇÖt be parsed correctly, CalConvert beeps and all other fields are set to zero. The next paragraphs explain the syntax and operators you may use in your mathematical expressions.
  31.  
  32. ΓÇó Syntax of the math field
  33. Γùè  xxx (x=0-9) is a number
  34. Γùè  $xxx (x=0-9,A-F) is an hexadecimal number
  35. Γùè  -xxx, -$xxx, $-xxx are negative numbers
  36. Γùè  '(' and ')' can be used as usual, nesting allowed
  37. Γùè  spaces are allowed between numbers and operators
  38. Γùè  no spaces are allowed inside numbers or operators
  39. Γùè  all numbers are interpreted as 32-bit signed integers
  40.  
  41. ΓÇó Order of operators
  42. Γùè  Operators in the upper lines are calculated first.
  43. Γùè  Operators in the same line are calculated sequentially.
  44.     
  45.    ^   **
  46.    *   /   :   %   <<  >>
  47.    &   |   \   AND OR  XOR
  48.    +   -
  49.    =   ==  !=  <>  <   >   <=  >=
  50.  
  51. ΓÇó Arithmetic operators
  52.  
  53.   +     add
  54.   -     subtract
  55.   *     multiply
  56.   /     divide
  57.   :     divide
  58.   %     remainder
  59.   ^     power
  60.   **    power
  61.  
  62. ΓÇó Logical operators
  63.     (return 1 if true, 0 if false)
  64.  
  65.   =     equal to
  66.   ==    equal to
  67.   !=    not equal to
  68.   <>    not equal to
  69.   <     less than
  70.   >     greater than
  71.   <=    less or equal
  72.   >=    greater or equal
  73.  
  74. ΓÇó Bitwise operators
  75.  
  76.   <<    bit shift left
  77.   >>    bit shift right
  78.   &     bit and
  79.   AND   bit and
  80.   and   bit and
  81.   |     bit or
  82.   OR    bit or
  83.   or    bit or
  84.   \     exclusive or
  85.   XOR   exclusive or
  86.   xor   exclusive or
  87.  
  88. ΓÇó Version history
  89. Γùè  2.2 - Fixed a bug in the parser that caused bad prioritization of the operators for some complex expressions that didnΓÇÖt use parenthesis (thanks to Paolo Sasso for finding out the problem).
  90. Γùè  2.1 - Uses the color utilities pattern as a background pattern under System 7.5 or later. You can set the utilities pattern by holding down the option key inside System 7.5ΓÇÖs Desktop Patterns utility.
  91. Γùè  2.0 - Added a clickable bit-by-bit representation, font and size menus, ΓÇ£long wordΓÇ¥ and ΓÇ£unsignedΓÇ¥ check boxes and an ΓÇ£evaluateΓÇ¥ button; most of the interface code was rewritten to make the CalConvert window a configurable stand-alone code module.
  92. Γùè  1.2.3 - CalConvert now refuses exponents larger than 32.
  93. Γùè  1.2.2 - Made the fields dialog movable.
  94. Γùè  1.2.1 - Cleaned up the code and updated documentation.
  95. Γùè  1.2 - Recompiled as a fat binary, runs native on Power Macs.
  96. Γùè  1.1 - Removed System 7 dependance and custom window definition.
  97. Γùè  1.06 - Added online help, changed menu keys to follow Apple guidelines.
  98. Γùè  1.05 - Fixed incoherent behavior of the ΓÇ£FieldsΓÇ¥ dialog.
  99. Γùè  1.04 - Changed name to CalConvert.
  100. Γùè  1.03 - First shareware version with arithmetic parser.
  101. Γùè  1.02 - First public release as QuickConvert.
  102. Γùè  1.01 - Menus added, still looks like a quick hack.
  103. Γùè  1.0 - Written for my personal use only, very poor interface.
  104.  
  105. ΓÇó Distribution
  106. Γùè  CalConvert is ┬⌐1994-95 Alessandro Levi Montalcini. It can be freely distributed as long as it is not modified and thereΓÇÖs no charge for it, but it may not be included in any commercial package without my consent.
  107. Γùè  You may find the latest version of all my shareware programs by anonymous ftp to ftp.alpcom.it, inside the /software/mac/LMontalcini directory. The complete ShareDisk package, which contains all my stuff and can be registered at a very low price, is also available there.
  108. Γùè  All online services and bulletin boards may make it available to their users at no charge other than the normal connection fees.
  109. Γùè  All non-profit user groups may distribute it at no charge.
  110. Γùè  All magazines may publish it on floppy disk without asking me first, as long as I get a copy of the issue containing my software.
  111. Γùè  All CD-ROM shareware collections and CD-ROM magazines may include it without my prior consent, as long as I get either a copy of the CD-ROM or an offer to buy the CD-ROM at a discounted price.
  112. Γùè  All redistribution companies such as Educorp may distribute it, as long as I get a copy of each media containing my software and a catalog of the companyΓÇÖs offerings (where applicable).
  113.  
  114. ΓÇó Disclaimer
  115. Γùè  CalConvert shouldnΓÇÖt cause any damage, but youΓÇÖre using it at your own risk. As an independent software developer, I can make no warranties whatsoever on it.
  116.  
  117. ΓÇó Have fun!
  118. Γùè  And donΓÇÖt forget to $$$ send your contribution $$$ so that more cool utilities will see the light in the near future, at the low-low-low costs of shareware.
  119.